<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"          
      xmlns:f="http://xmlns.jcp.org/jsf/core"      
      >
    <h:head>
        <f:metadata>
            <f:viewParam name="serviceID" value="#{serviceBean.serviceID}"/>
            <f:event type="preRenderView" listener="#{serviceBean.getServiceDetail}"/>
        </f:metadata>  
    </h:head>
    <h:body>
        <ui:composition template="template/masterlayout.xhtml">
            <ui:define name="pagetitle">
                #{serviceBean.serviceName}
            </ui:define>
            <ui:define name="breadcrumb">
                <h:link value="Dashboard" outcome="index"/> &raquo; <h:link value="Services management" outcome="services"/> &raquo; <h:outputText value="#{serviceBean.serviceName}"/>
            </ui:define>
            <ui:define name="content">
                <div class="druginfo detail">
                    <div class="thumb">
                        <h:graphicImage library="images" name="noimage.jpg"/>
                    </div>
                    <div class="bref">
                        <p>                            
                            <h:outputLabel for="serviceId">Service ID: </h:outputLabel>
                            <h:outputText id="serviceId" value="#{serviceBean.serviceID}"/>
                        </p>                        
                        <p>                            
                            <h:outputLabel for="serviceName">Service Name: </h:outputLabel>
                            <h:outputText id="serviceName" value="#{serviceBean.serviceName}"/>
                        </p>
                        <p>                            
                            <h:outputLabel for="servicePrice">Service Price: </h:outputLabel>
                            <h:outputText id="servicePrice" value="#{serviceBean.servicePrice} $"/>
                        </p>
                        <div class="description">
                            <h3>Service description</h3>
                            <p>
                                #{serviceBean.serviceDescription}
                            </p>
                        </div>                        
                    </div>
                    <div class="clear">                        
                    </div>
                </div>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

